package edu.hebeu.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;
@TableName("lea")
public class Leave extends Model {
    @TableId
    private  Integer id;
    private  Integer employeeNumber;
    private  Integer departmentNumber;
    private Date startTime;
    private   Date endTime;
    private  Integer days;
    private  String reason;
    private  String type;
     private  String manager;
     private  String status;
     private  String notes;


    @TableField(exist = false)
     private  Department department;
     @TableField(exist = false)
     private  Employee employee;



     public  void  setEmployee(Employee employee){
         this.employee=employee;
     }
     public  Employee getEmployee(){
         return employee;
     }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public  void  setId(Integer id){
         this.id=id;
     }
     public  Integer getId(){
         return  id;
     }
     public  void setDepartmentNumber(Integer  departmentNumber){
         this.departmentNumber=departmentNumber;
     }
     public  Integer getDepartmentNumber(){
         return  departmentNumber;
     }
     public void  setEmployeeNumber(Integer employeeNumber){
         this.employeeNumber=employeeNumber;
     }
     public  Integer getEmployeeNumber(){
         return  employeeNumber;
     }
     public  void  setNotes(String notes){
         this.notes=notes;
     }
     public  String getNotes(){
         return notes;
     }
     public  void  setStartTime(Date startTime){
         this.startTime=startTime;
     }
     public  Date getStartTime(){
         return startTime;
     }
     public  void  setEndTime(Date endTime){
         this.endTime=endTime;
     }
     public  Date getEndTime(){
         return endTime;
     }
     public  void  setDays(Integer days){
         this.days=days;
     }
     public  Integer getDays(){
         return days;
     }
     public  void  setReason(String reason){
         this.reason=reason;
     }
     public  String getReason(){
         return reason;
     }
     public  void  setType(String type){
         this.type=type;
     }
     public  String getType(){
         return  type;
     }
     public  void  setManager(String manager){
         this.manager=manager;
     }
     public  String getManager(){
         return manager;
     }
     public  void setStatus(String status){
         this.status=status;
     }
     public  String getStatus(){
         return status;
     }


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
